import feedparser
SMZDM_FEED_FX_URL = 'http://faxian.smzdm.com/feed'
SMZDM_FEED_YH_URL = 'http://feed.smzdm.com'

def read_news(feedurl):
    try:
        data = feedparser.parse(feedurl)
    except Exception , e:
        print "error: %s" %str(erro)
    for entry in data.entries:
        print (entry.title)
        print (entry.link)
        print (entry.description)
        print (entry.focus_pic)
        print ("\n")


if __name__ == '__main__':
    read_news(SMZDM_FEED_FX_URL)
    print "=========================================================\n"
    read_news(SMZDM_FEED_YH_URL)
    raw_input()